Creating Textual Language Dialects Using Aspect-like Techniques
نویسنده
چکیده
We present a work aimed on efficiently creating textual language dialects and supporting tools for them (e.g. compiler front-ends, IDE support, prettyprinters, etc.). A dialect is a language which may be described with a (relatively small) set of changes to some other language. For example we can consider SQL dialects used in DB-management systems. The need in creating dialects is witnessed by existence of extensible languages like LISP and many more [1,2,3,4]. There also are special tools supporting dialect development for C [5] and Java [6]. These approaches allow extending languages efficiently, but it took a lot of work to make it possible for each single language. The problem we are addressing here is how can we do it for arbitrary languages with not so much effort? If we need only a syntax checker for a language, creating dialects for it is easy. We have a grammar describing the language syntax and all we need is to modify this grammar. This can be done easily by a transformation which may be formulated in terms of aspect application (analogous to AOP [7]), we call such transformations syntactical aspects. By pattern matching aspects identify places in the source grammar that we need to modify and provide instructions for such modifications: insert something before or after the specified point, or replace the object with some other one. For example, assume we have a grammar for arithmetical expressions for real numbers:
منابع مشابه
The Effect of Visual Representation, Textual Representation, and Glossing on Second Language Vocabulary Learning
In this study, the researcher chose three different vocabulary techniques (Visual Representation, Textual Enhancement, and Glossing) and compared them with traditional method of teaching vocabulary. 80 advanced EFL Learners were assigned as four intact groups (three experimental and one control group) through using a proficiency test and a vocabulary test as a pre-test. In the visual group, stu...
متن کاملThe Short Vowels /i/ and /u/ in Iranian Balochi Dialects
The aim of the present paper is to study the status of the short vowels /i/ and /u/ in five selected Iranian Balochi dialects. These dialects are spoken in Sistan (SI), Saravan (SA), Khash (KH), Iranshahr (IR), and Chabahar (CH) regions located in province Sistan va Baluchestan in the southeast of Iran. This study investigates whether these two vowels have the same qualities as the short /i/ an...
متن کاملColloquialising Modern Standard Arabic Text for Improved Speech Recognition
Modern standard Arabic (MSA) is the official language of spoken and written Arabic media. Colloquial Arabic (CA) is the set of spoken variants of modern Arabic that exist in the form of regional dialects. CA is used in informal and everyday conversations while MSA is formal communication. An Arabic speaker switches between the two variants according to the situation. Developing an automatic spe...
متن کاملMethod for Aspect-Based Sentiment Annotation Using Rhetorical Analysis
This paper fills a gap in aspect-based sentiment analysis and aims to present a new method for preparing and analysing texts concerning opinion and generating user-friendly descriptive reports in natural language. We present a comprehensive set of techniques derived from Rhetorical Structure Theory and sentiment analysis to extract aspects from textual opinions and then build an abstractive sum...
متن کاملA Textual Syntax with Tool Support for the Goal-Oriented Requirement Language
Most goal-oriented modeling languages, including i*, Tropos, KAOS and the Goal-oriented Requirement Language (GRL), offer a graphical syntax, sometimes accompanied by a textual interchange format (e.g., in XML). Graphical representations of goal models excel at supporting discussions and at visualizing analysis results. However, creating/modifying goal models is often a tedious task with curren...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- CoRR
دوره abs/0906.1777 شماره
صفحات -
تاریخ انتشار 2009